package cn.liontalk.demo.annotation;



import cn.liontalk.demo.scope.BeanRefreshScope;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;

import java.lang.annotation.*;

@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Scope(BeanRefreshScope.SCOPE_REFRESH )
public @interface RefreshScope2 {

    ScopedProxyMode proxyMode() default ScopedProxyMode.TARGET_CLASS;

}
